
package com.insigma.business.qrcode.common.dao;


import com.insigma.business.qrcode.common.dto.CommonFeedbackBSearcher;
import com.insigma.business.qrcode.common.entity.CommonFeedbackDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonFeedbackDao {

    
    List<CommonFeedbackDO> search(final CommonFeedbackBSearcher innerSearcher);

    
    CommonFeedbackDO get(final String id);

    
    Integer insert(final CommonFeedbackDO commonFeedbackDO);

    
    Integer update(final CommonFeedbackDO commonFeedbackDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    List<String> groupByField(@Param("tableName")String tableName, @Param("columnName")String columnName);

    Integer updateByField(@Param("tableName")String tableName, @Param("columnName")String columnName,@Param("originValue") String originValue, @Param("targetValue")String targetValue);

    Integer alterTable(@Param("tableName")String tableName, @Param("columnName")String columnName, @Param("size")int size);
}
